package top.igotcha.article.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import top.igotcha.article.pojo.Comment;

import java.util.List;

/**
 * @author Gotcha
 * @date 2021/1/29
 * @describe
 */
public interface CommentRepository extends MongoRepository<Comment, String> {

    //SpringDataMongoDB支持通过定义查询方法名进行查询的方式
    List<Comment> findByArticleid(String articleId);
}